import java.util.Scanner;

public class Test {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        while (scan.hasNext()) {
            int num = scan.nextInt();
           if (num % 2 != 0) {
                for (int i = 0; i < num/ 2; i++) {
                    for (int j = 0; j <i; j++) {
                        System.out.print(" ");
                    }
                    System.out.print("*");
                    for(int k=num-2-2*i;k>0;k--){
                        System.out.print(" ");
                    }
                    System.out.print("*");
                    for (int j = 0; j <i; j++) {
                        System.out.print(" ");
                    }
                    System.out.print("\n");
                }
                for(int p=0;p<(num-1)/2;p++){
                    System.out.print(" ");
                }
               System.out.print("*");
               for(int p=0;p<(num-1)/2;p++) {
                   System.out.print(" ");
               }
               System.out.print("\n");
               for(int i=(num+1)/2;i<num;i++){
                   for (int j = 0; j <num-i-1; j++) {
                       System.out.print(" ");
                   }
                   System.out.print("*");
                   for(int k=0;k<2*i-num;k++){
                       System.out.print(" ");
                   }
                   System.out.print("*");
                   for (int j = 0; j <num-i-1; j++) {
                       System.out.print(" ");
                   }
                   System.out.print("\n");
               }
            }
           if(num%2==0){
               for (int i = 0; i < num/ 2; i++) {
                   for (int j = 0; j <i; j++) {
                       System.out.print(" ");
                   }
                   System.out.print("*");
                   for(int k=num-2-2*i;k>0;k--){
                       System.out.print(" ");
                   }
                   System.out.print("*");
                   for (int j = 0; j <i; j++) {
                       System.out.print(" ");
                   }
                   System.out.print("\n");
               }

               for(int i=(num+1)/2;i<num;i++){
                   for (int j = 0; j <num-i-1; j++) {
                       System.out.print(" ");
                   }
                   System.out.print("*");
                   for(int k=0;k<2*i-num;k++){
                       System.out.print(" ");
                   }
                   System.out.print("*");
                   for (int j = 0; j <num-i-1; j++) {
                       System.out.print(" ");
                   }
                   System.out.print("\n");
               }


           }
        }
    }
}
